package test;

@FunctionalInterface
interface Talkable{
    void talk(String msg);
}
public class LambdaExample1 {
    public static void main(String[] args){
        Talkable person =(msg)->{System.out.println(msg);};
        person.talk("Hello world");
    }
}
